package cn.phecda.boot.tenant.test.table.jpa;

import cn.phecda.boot.data.jpa.hibernate.SnowflakeIdGenerator;
import cn.phecda.boot.tenant.data.jpa.AbstractTenantStatusJpaEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Getter;
import lombok.Setter;

/**
 * <p> TODO </p>
 *
 * @author : wanpinwei
 */
@Getter
@Setter
@Entity(name = "person_tenant")
public class PersonTenantJpaEntity extends AbstractTenantStatusJpaEntity {
    @Id
    @SnowflakeIdGenerator
    @Column(name = "id")
    private String id;

    @Column(name = "name")
    private String name;

    public PersonTenantJpaEntity() {
    }

    public PersonTenantJpaEntity(String name) {
        this.name = name;
    }
}
